package com.jxmcloud.business.cut.model.database;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xlcloud.platform.util.DateUtil;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 已成功邀请用户列表 实体类
 */
@Data
@TableName("user_invite_success")
@Builder
public class DBUserInviteSuccess {
    @TableId(value = "id", type = IdType.AUTO)
    private  Integer id;
    //用户玄乐id
    @TableField("`uid`")
    private Integer uid;
    //活动id
    @TableField("`activity_id`")
    private Integer activityId;
    //被邀请玄乐用户id
    @TableField("`invited_xl_id`")
    private Long invitedXlId;
    //被邀请玄乐账号
    @TableField("`invited_account`")
    private String invitedAccount;
    //被邀请人姓名
    @TableField("`invited_name`")
    private String invitedName;
    //被邀请玄乐头像
    @TableField("`invited_icon`")
    private String invitedIcon;
    //回应时间
    @TableField("`resp_time`")
    @DateTimeFormat(pattern = DateUtil.FMT_YYYYMMDD_HHmmss_ZG)
    @JsonFormat(pattern = DateUtil.FMT_YYYYMMDD_HHmmss_ZG, timezone = DateUtil.TZ_GMT8)
    @JSONField(format = DateUtil.FMT_YYYYMMDD_HHmmss_ZG)
    private Date respTime;
    //用户类型(是否是新用户) 0:老用户 1:新用户
    @TableField("`user_type`")
    private Integer userType;
    //类型参数(评判新用户的参数)
    @TableField("`type_param`")
    private String typeParam;
    //邀请的模块ID
    @TableField("`invited_module_id`")
    private Integer invitedModuleId;
    //被邀请人手机号
    @TableField("`invited_mobile`")
    private String invitedMobile;
    //是否已领取了奖励
    @TableField("`is_gain_award`")
    private Integer isGainAward;
}
